Class symantec.itools.awt.CompareCells
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.CompareCells

Object
   |
   +----symantec.itools.awt.CompareCells

public abstract class CompareCells
extends Object
implements CompareFuncCB
This is a helper class to the MultiList class. It is used to compare Cells of the MultiList.

Version:
1.1, July 14, 1997
Author:
Symantec

Variable Index

 o bs
A set of flags that indicates which rows are hilighted in the MultiList.
 o lessOrBig
The current compare mode for the lessThan method.
 o selRow
The zero-relative index of the currently selected row, or -1 if none.

Constructor Index

 o symantec.itools.awt.CompareCells()
Constructs a CompareCells object.

Method Index

 o callBackSwap(Object, Object)
Exchanges the compared values (rows) in the two given objects.
 o compareObjects(Object, Object)
Compares the value of two objects.
 o getSelectedRow()
Gets the row which has been noted as selected.
 o lessThan(Object, Object)
By default, determines whether the first object's value is less than the second's.
 o reverse()
Toggles the comparison done by the lessThan method.
 o setCurrentBitSet(BitSet)
Notes which rows are hilighted before a sort is performed.
 o setSelectedRow(int)
Notes which row is selected before a sort is performed.

Variables

 o bs
protected java.util.BitSet bs
A set of flags that indicates which rows are hilighted in the MultiList.

 o lessOrBig
protected boolean lessOrBig
The current compare mode for the lessThan method. If true, the lessThan method determines whether the first object's value is less than the second's. If false, the lessThan method determines whether the first object's value is is greater than or equal to the second's.

See Also:
lessThan, reverse
 o selRow
protected int selRow
The zero-relative index of the currently selected row, or -1 if none.

Constructors

 o CompareCells
public CompareCells()
Constructs a CompareCells object.

Methods

 o callBackSwap
public void callBackSwap(Object o1,
                         Object o2)
Exchanges the compared values (rows) in the two given objects.

Parameters:
o1 - the first object, a Matrix
o2 - the second object, a Matrix
 o compareObjects
public abstract int compareObjects(Object o1,
                                   Object o2)
Compares the value of two objects.

Parameters:
o1 - the first object
o2 - the second object
Returns:
0 if the object's values are equal, less than 0 if the first object's value is less than the second object's value, and greater than 0 if the first object's value is greater than the second object's value
 o getSelectedRow
public int getSelectedRow()
Gets the row which has been noted as selected.

See Also:
setSelectedRow
 o lessThan
public boolean lessThan(Object o1,
                        Object o2)
By default, determines whether the first object's value is less than the second's. Calling the reverse method toggles between the default behavior and determining the if the first object's value is greater than or equal to the second's.

Parameters:
o1 - the first object
o2 - the second object
See Also:
reverse
 o reverse
public void reverse()
Toggles the comparison done by the lessThan method. By default, the lessThan method determines whether the first object's value is less than the second's. Calling the this method toggles between toggles netween that behavior and determining the if the first object's value is greater than or equal to the second's.

See Also:
lessThan
 o setCurrentBitSet
public void setCurrentBitSet(BitSet bs)
Notes which rows are hilighted before a sort is performed.

Parameters:
bs - flags indicating which rows are hilighted in the MultiList
 o setSelectedRow
public void setSelectedRow(int selRow)
Notes which row is selected before a sort is performed.

Parameters:
selRow - the zero-relative index of the currently selected row
See Also:
getSelectedRow

All Packages  Class Hierarchy  This Package  Previous  Next  Index